home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Mania 6
/
MacMania 6.toast
/
/
Tools&Utilities
/
EnterAct Stuff
/
Drag_on Modules
/
hAWK programs
/
$UppercaseAll
< prev
next >
Wrap
Text File
|
1993-05-12
|
320b
|
18 lines
#Change all letters of each word (field) to uppercase
BEGIN {u = "abcdefghijklmnopqrstuvwxyz"
U = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
}
{
out = ""
n = length($0);
for (i = 1; i <= n; ++i)
{
if (ind = index(u, substr($0, i, 1)))
out = out substr(U, ind, 1);
else
out = out substr($0, i, 1)
}
print out
}